package May;

import java.util.Scanner;

public class Test03UsingScanner02 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        sc.useDelimiter("\\p{Print}{1,11}");
        System.out.println("请输入一段话，我将重复你的的话");
        String lan=sc.nextLine();
        System.out.println(lan);
        int a=lan.getBytes().length;
        int a2=2;
        System.out.println("您输入的这段字符的字节长度为"+a);
        System.out.println("a2的长度为"+a2);
    }
}
